import { View } from "@tarojs/components";
import "./loading.less";

export default function Loading({ loading, children }) {
  console.log(loading);

  return (
    <>
      {loading ? (
        <View className="loading-content">玩命加载中...</View>
      ) : (
        children
      )}
    </>
  );
}
